package com.lxp.project.function.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lxp.framework.aspectj.lang.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 预约管理对象 fn_order
 *
 * @author 乐乐
 * @date 2022-05-04
 */
@Data
@TableName("fn_order")
@EqualsAndHashCode(callSuper = false)
public class FnOrder {
    /**
     * 预约编号
     */
    @Excel(name = "预约编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 项目名称
     */
    @Excel(name = "项目名称")
    @TableField(value = "project_id")
    private Long projectId;
    /**
     * 预约时间
     */
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "order_time")
    private Date orderTime;
    /**
     * 预约人
     */
    @Excel(name = "预约人")
    @TableField(value = "user_id")
    private Long userId;
    /**
     * 预约电话
     */
    @Excel(name = "预约电话")
    @TableField(value = "user_tel")
    private String userTel;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "create_time")
    private Date createTime;
}
